﻿using System;
using System.Collections.Generic;
using System.Text;
using YouHP.BLL;
using YouHP.Model;
using YouHP.Utility;

namespace YouHP.Pages
{
    public class ViewTreatment : BasePage
    {
        public TreatmentInfo mTreatmentInfo =new TreatmentInfo();
        public List<TreatmentStatDisease> mStatDisease =new List<TreatmentStatDisease>();
        public List<TreatmentStatDosage> mStatDosage= new List<TreatmentStatDosage>();
        public List<TreatmentStatTaketime> mStatTaketime =new List<TreatmentStatTaketime>();
        public List<TreatmentStopReason> mStatStopReason =new List<TreatmentStopReason>();

        protected override void ShowPage()
        {
            base.ShowPage();
            int tid = RequestTools.GetQueryInt("tid", -1);
            if (tid != -1)
            {

                mTreatmentInfo = TreatmentBLL.Instance.GetTreatmentInfo(tid);
                mStatDosage = TreatmentBLL.Instance.GetTreatmentStatDosage(tid);
                /*mStatDisease = TreatmentBLL.Instance.GetTreatmentStatDisease(tid);
                mStatTaketime = TreatmentBLL.Instance.GetTreatmentStatTaketime(tid);
                mStatStopReason = TreatmentBLL.Instance.GetTreatmentStopReason(tid);*/
            }

            //this.SeoTitle = mTreatmentInfo.Name;
            this.PageTitle = "治疗";
        }
    }
}
